#!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""

@author ：chenzf
@date ：2024/4/22 下午5:54 
"""
import random

from pyecharts.charts import Line
from pyecharts.options import *

line = Line()
line.add_xaxis(["中国", "美国", "日本"])
line.add_yaxis("GDP", [30, 20, 10])

line.set_global_opts(title_opts=TitleOpts(title="GDP展示", pos_left="center", pos_bottom="1%"),
                     legend_opts=LegendOpts(is_show=True), toolbox_opts=ToolboxOpts(is_show=True),
                     visualmap_opts=VisualMapOpts(is_show=True)
                     )
line.render()
class Student:

    def __init__(self, name, age):
        self.name = name
        self.age = age

    def __str__(self):
        return f"Student name = {self.name} age = {self.age}"


student = Student("张三", 18)
print(f"学生的名字={student.name},年龄={student.age}")

class Base_Phone:
    IMEI = "1802552"
    name = "phone"
    def call_IMEI(self):
        print(f"IMEI={self.IMEI}")
    def call_name(self):
        print(f"name={self.name}")

# 继承
class Iphone(Base_Phone):
    face_id = "Iphone2024"
    def call_face_id(self):
        print(f"face_id={self.face_id}")
class NFC(Iphone):
    def call_NFC(self):
        print("NFC")
class Iphone2024(NFC,Iphone):
     print("Iphone2024")
iphone2024 = Iphone2024()
iphone2024.call_IMEI()
iphone2024.call_name()
iphone2024.call_face_id()
iphone2024.call_NFC()

randint = random.randint(1, 10)